package com.canis.stockmanager.repository;

import com.canis.stockmanager.domai.Distributor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DistributtorRepository   extends JpaRepository<Distributor, Long> {
    Page<Distributor> findByNameContainingAndPhoneContainingAndAddressContaining(String name,String phone,String address, Pageable pageable);
    Page<Distributor> findByNameContaining(String name,Pageable pageable);
}